package com.lcb.spring.config;

import com.lcb.spring.bean.LCBLog;
import com.lcb.spring.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = {"com.lcb.spring"})
public class MainConfig {

    @Bean
   // @Lazy
    //@Scope(scopeName = "prototype")
    public Person person() {
        return new Person();
    }

   // @Bean
//    public LCBAspect lCBAspect() {
//        return new LCBAspect();
//    }

    @Bean
    //@Conditional(value = LcbCondition.class)
    public LCBLog lcbLog() {
        return new LCBLog();
    }

}
